Computes the beta function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The first argument of the function. |
||
| real(kind=real64), | intent(in) | :: | b |
The second argument of the function. |
The value of the beta function at and .
Computes the digamma function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The function value.
Computes the incomplete beta function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The first argument of the function. |
||
| real(kind=real64), | intent(in) | :: | b |
The second argument of the function. |
||
| real(kind=real64), | intent(in) | :: | x |
The upper limit of the integration. |
The value of the incomplete beta function.
Computes the lower incomplete gamma function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The coefficient value. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The function value.
Computes the upper incomplete gamma function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The coefficient value. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The function value.
Log regularized beta; invalid inputs or nonconvergence return NaN. The leading factor and complementary branch are evaluated in log space.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
Finite, positive beta shape parameters. |
||
| real(kind=real64), | intent(in) | :: | b |
Finite, positive beta shape parameters. |
||
| real(kind=real64), | intent(in) | :: | x |
Integration limit on [0, 1]. |
||
| integer(kind=int32), | intent(in), | optional | :: | max_iterations |
Continued-fraction iteration limit; default 1000. |
Log ratio; x = 0 gives -infinity, x = 1 gives zero.
Log lower gamma ratio; invalid inputs or nonconvergence return NaN.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
Finite, positive gamma shape parameter. |
||
| real(kind=real64), | intent(in) | :: | x |
Nonnegative integration limit; +infinity is accepted. |
||
| integer(kind=int32), | intent(in), | optional | :: | max_iterations |
Series/continued-fraction iteration limit; default 10000. |
Log P(a, x); x = 0 gives -infinity, x = +infinity gives zero.
Log upper gamma ratio; invalid inputs or nonconvergence return NaN.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
Finite, positive gamma shape parameter. |
||
| real(kind=real64), | intent(in) | :: | x |
Nonnegative integration limit; +infinity is accepted. |
||
| integer(kind=int32), | intent(in), | optional | :: | max_iterations |
Series/continued-fraction iteration limit; default 10000. |
Log Q(a, x); x = 0 gives zero, x = +infinity gives -infinity.
Computes the regularized beta function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The first argument of the function. |
||
| real(kind=real64), | intent(in) | :: | b |
The second argument of the function. |
||
| real(kind=real64), | intent(in) | :: | x |
The upper limit of the integration. |
||
| integer(kind=int32), | intent(in), | optional | :: | max_iterations |
Iteration limit; nonconvergence returns NaN. |
The value of the regularized beta function.
Computes the regularized lower incomplete gamma function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The coefficient value. The value must be positive. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. The value must be non-negative. |
||
| integer(kind=int32), | intent(in), | optional | :: | max_iterations |
Iteration limit; nonconvergence returns NaN. |
The function value, which lies on the interval [0, 1].
Computes the regularized upper incomplete gamma function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
The coefficient value. The value must be positive. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. The value must be non-negative. |
||
| integer(kind=int32), | intent(in), | optional | :: | max_iterations |
Iteration limit; nonconvergence returns NaN. |
The function value, which lies on the interval [0, 1].
Computes exp(x) - 1 without subtractive cancellation near zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
Exponent argument. |
Difference; overflow gives +infinity and NaN inputs propagate.
Computes log(1 + x) accurately when x is near zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
Argument on [-1, infinity); NaN inputs propagate. |
Logarithm; x = -1 gives -infinity, x < -1 gives NaN.